4win2003/xp等系统的制作方式
由于系统较老,已经不支持 cloudinit 等方式,我们定制了一个 agent.exe 来进行 ip 配置和密码配置。
实现原理
- 创建实例后,我们会将实例的 IP、密码等信息注入到实例内
- 请将 agent.exe 放到 C:\Windows\agent.exe
- 设置 agent.exe 为开机启动
- 实例开机后,agent.exe 会启动并进行密码,ip 等操作。
请注意:agent.exe 不支持对 C 盘进行扩容,请务必确保制作镜像时 C 盘大小为售卖大小,否则需要客户人工进行扩容
镜像制作方式
- 下载 agent 并放到
agent 下载地址:
http://mirror.cloud.idcsmart.com/cloud/software/agent/agent.exe
2. 设置开机启动
进入:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run**新建字符串值:**名称 NETPASS
双击刚才创建的项:填写 C:\Windows\agent.exe
3. 设置开机自动登录
要求
进入:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/Current Version/Winlogon①
②
③
镜像完成